package com.ruoyi.flowable.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ruoyi.flowable.mapper.LeaveEntityRepository;
import com.ruoyi.flowable.model.jpa.LeaveJpaEntity;
import com.ruoyi.flowable.service.ILeaveEntityService;

@Service
public  class LeaveEntityService implements ILeaveEntityService {

    @Resource
    private LeaveEntityRepository leaveEntityRepository;

    public LeaveJpaEntity findEntityById(Integer id){
        return leaveEntityRepository.getOne(id);
    }

    public LeaveJpaEntity SaveEntity(LeaveJpaEntity leaveJpaEntity){
        return leaveEntityRepository.save(leaveJpaEntity);
    }

}
